<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>   
    <base href="<%=basePath%>"/>
    <title>广元电业局低质易耗品管理平台</title>
	<link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/category.js"></script>
	<!-- DTree -->
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/jquery.blockUI.js"></script> 
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/dtree.js"></script>
	
	<!-- DWR -->
	<script type="text/javascript" src="${pageContext.request.contextPath}/dwr/engine.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/dwr/util.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/dwr/interface/categoryManager.js"></script>
</head>

<body class="ContentBody" onload="showFirstLevel();setAssetCategoryId()">
<form action="addCategory.action" method="post">
<div class="MainDiv">
	<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
		  <tr>
		      <th class="tablestyle_title" >资产类型信息录入</th>
		  </tr>
		  <tr>
		    <td class="CPanel">
				<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
				<tr>		
				   <td width="100%">
					  <fieldset style="height:100%;">
						<legend>资产类型信息</legend>	
							<input type="hidden" value="0" id="assetCategoryId" name="category.catid"/>		      
							<table border="0" cellpadding="2" cellspacing="1" style="width:100%">
								<tr>									  
								  <td align="right">资产类型名称:</td>
								     <td>
								     	<input type="text" name="category.catname"/>
			                            <span style="color: red">*</span>
			                        </td>
								   <td align="right">资产类型简称:</td>
								   <td ><input name="category.catsimplename" type="text" class="text" style="width:154px"/></td>                      			     
								 </tr>		    
								 <tr>
								   <td align="right">一级分类:</td>
								   <td>
								   	<select class="text" name="firstLevel" id="firstLevel" style="width:154px" onclick="showSecondLevel();setAssetCategoryId();">
								   		<option value="empty">不填为一级分类</option>
								   	</select>
								   </td>  	             
								   <td align="right">资产类型别名:</td>
								   <td><input class="text" name="category.catalias" style="width:154px" /></td>  
								 </tr>
								  <tr> 
								    <td align="right">二级分类:</td>
								    <td>
								    	<select class="text" name="secondLevel" id="secondLevel" style="width:154px" onclick="setAssetCategoryId();" >
											<option value="empty">不填为二级分类</option>
								   		</select>
								   	</td>
								   	<td align="right">资产规格:</td>
								    <td><input class="text" name="category.catnorms" style="width:154px"/></td>  
								  </tr> 					  		  
								  <tr> 
								    <td align="right">计量单位:</td>
								    <td>
								    	<select name="category.catunit" style="width:154px">
								    		<option selected="selected">个</option>
								    		<option>台</option>
								    		<option>套</option>
								    		<option>件</option>
								    		<option>本</option>
								    		<option>支</option>
								    		<option>幅</option>
								    	</select>
								    </td>
								 	<td align="right">最低库存数量:</td>
								    <td><input class="text" name="category.catlowstock" style="width:154px" value=""/></td>				    
								  </tr>       
								  <tr>	
								   	<td align="right">最高库存数量:</td>
								    <td><input class="text" name="category.cathighstock" style="width:154px" value=""/></td>	    				   
								  </tr>
						</table>
							  <br />
						</fieldset>
					</td>
				</tr>
				</table>	
		 	</td>
		</tr>			
		<tr>
			<td colspan="2" align="center" height="50px">
			<input type="submit" name="Submit" value="保存" class="button"/>　
			<input type="button" name="Submit2" value="返回" class="button" onclick="window.history.go(-1);"/>
			</td>
		</tr> 
	</table>
</div>
</form>
</body>
</html>

